import java.util.Scanner;

public class homework2_chapter5 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int num = input.nextInt();
		int a;
		for(a=2;a<=num;a++) {
			if(num%a==0) {
				System.out.print(a+"*");
				num = num/a;
			
			}
		}
		System.out.print(num);

	}

}
